import socket

clientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
clientSocket.connect(('127.0.0.1', 8001))

while True:
    message = input('message: ')
    clientSocket.send(message.encode('UTF-8'))
